﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;

namespace LastStand.gameContent
{
    public class DayHandler
    {
        /// <summary>
        /// Boolean for whether or not to display what day it is at the beginning of each day
        /// </summary>
        Boolean displayDayBanner;

        /// <summary>
        /// which day is the game currently on?
        /// </summary>
        private int day;
        protected int GetDay
        {
            get { return day; }
        }
        protected int Day
        {
            set { day = value; }
        }

        //Textures day needs the option of drawing
        Texture2D DayBanner;

        //random for deciding where to spawn and how often to spawn enemies
        Random rand;

        public DayHandler()
        {
            this.Day = 1;
            rand = new Random();
            displayDayBanner = true;
        }

        public void Update(GameTimerEventArgs gameTime)
        {
        }

        public void Load(ContentManager content)
        {
            this.DayBanner = content.Load<Texture2D>("Test Day");
        }

        public void Draw(SpriteBatch sb)
        {
            sb.Draw(this.DayBanner,
                new Vector2(
                    (GraphicsDeviceManager.DefaultBackBufferWidth/2) - (this.DayBanner.Width/2), 
                    (GraphicsDeviceManager.DefaultBackBufferHeight/2) - (this.DayBanner.Height/2)),
                null,
                Microsoft.Xna.Framework.Color.White,
                0.0f,
                Vector2.Zero,
                1f,
                SpriteEffects.None,
                0);
        }
    }
}
